package com.ruoyi.system.domain.project.training;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 研修培训对象 training_info
 * 
 * @author ruoyi
 * @date 2025-10-09
 */
public class TrainingInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 研修培训ID */
    private Long id;

    /** 研修培训名称 */
    @Excel(name = "研修培训名称")
    private String trainingName;

    /** 研修培训地点 */
    @Excel(name = "研修培训地点")
    private String trainingPlace;

    /** 研修培训时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "研修培训时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date trainingTime;

    private Date trainingEnd;
    /** 报告人 */
    @Excel(name = "报告人")
    private String reporter;

    /** 附件 */
    @Excel(name = "附件")
    private String attachmentUrl;

    /** 报告人id */
    @Excel(name = "报告人id")
    private Long reporterId;

    /** 主办单位 */
    @Excel(name = "主办单位")
    private String unit;
    /** 当前角色 */
    private String currentRole;
    /** 部门id */
    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTrainingName(String trainingName) 
    {
        this.trainingName = trainingName;
    }

    public String getTrainingName() 
    {
        return trainingName;
    }

    public void setTrainingPlace(String trainingPlace) 
    {
        this.trainingPlace = trainingPlace;
    }

    public String getTrainingPlace() 
    {
        return trainingPlace;
    }

    public void setTrainingTime(Date trainingTime) 
    {
        this.trainingTime = trainingTime;
    }

    public Date getTrainingTime() 
    {
        return trainingTime;
    }

    public void setReporter(String reporter) 
    {
        this.reporter = reporter;
    }

    public String getReporter() 
    {
        return reporter;
    }

    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }

    public void setReporterId(Long reporterId) 
    {
        this.reporterId = reporterId;
    }

    public Long getReporterId() 
    {
        return reporterId;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("trainingName", getTrainingName())
            .append("trainingPlace", getTrainingPlace())
            .append("trainingTime", getTrainingTime())
            .append("reporter", getReporter())
            .append("attachmentUrl", getAttachmentUrl())
            .append("reporterId", getReporterId())
            .append("unit", getUnit())
            .toString();
    }

    public String getCurrentRole() {
        return currentRole;
    }

    public void setCurrentRole(String currentRole) {
        this.currentRole = currentRole;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Date getTrainingEnd() {
        return trainingEnd;
    }

    public void setTrainingEnd(Date trainingEnd) {
        this.trainingEnd = trainingEnd;
    }
}
